home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / xbtx.lha / Source / Application.hpp < prev    next >
C/C++ Source or Header  |  1995-10-13  |  3KB  |  114 lines

  1. /*
  2. **    $Id: Application.hpp 1.6 1995/10/13 11:43:06 olsen Exp olsen $
  3. **
  4. **    :ts=4
  5. */
  6.  
  7. /*
  8.  * Copyright © 1995 by Olaf Barthel, All Rights Reserved
  9.  *
  10.  * Redistribution and use in source and binary forms, with or without
  11.  * modification, are permitted provided that the following conditions
  12.  * are met:
  13.  * 1. Redistributions of source code must retain the above copyright
  14.  *    notice, this list of conditions and the following disclaimer.
  15.  * 2. Redistributions in binary form must reproduce the above copyright
  16.  *    notice, this list of conditions and the following disclaimer in the
  17.  *    documentation and/or other materials provided with the distribution.
  18.  *
  19.  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
  20.  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  21.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
  22.  * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  24.  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  25.  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  26.  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  27.  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  28.  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29.  *
  30.  * This software has not been validated by the ``Bundesamt fuer Zulassungen in
  31.  * der Telekommunikation'' of the ``Deutsche Bundepost Telekom'' and thus
  32.  * must not be used for accessing the BTX-Network of the Telekom in Germany.
  33.  *
  34.  * Diese Software hat keine Zulassung durch das Bundesamt fuer Zulassungen in
  35.  * der Telekommunikation der Deutschen Bundespost Telekom und darf daher nicht
  36.  * am Netz der Deutschen Bundespost Telekom in Deutschland betrieben werden.
  37.  */
  38.  
  39. #ifndef _APPLICATION_HPP
  40. #define _APPLICATION_HPP 1
  41.  
  42. /****************************************************************************/
  43.  
  44. class Application;
  45.  
  46. #ifndef _TYPES_HPP
  47. #include "Types.hpp"
  48. #endif
  49.  
  50. #ifndef _IOCHANNEL_HPP
  51. #include "IOChannel.hpp"
  52. #endif
  53.  
  54. #ifndef _IOFILE_HPP
  55. #include "IOFile.hpp"
  56. #endif
  57.  
  58. #ifndef _IOSERIAL_HPP
  59. #include "IOSerial.hpp"
  60. #endif
  61.  
  62. #ifndef _IORAWSERIAL_HPP
  63. #include "IORawSerial.hpp"
  64. #endif
  65.  
  66. #ifndef _BTXDISPLAY_HPP
  67. #include "BTXDisplay.hpp"
  68. #endif
  69.  
  70. #ifndef _GFXDISPLAY_HPP
  71. #include "GfxDisplay.hpp"
  72. #endif
  73.  
  74. #ifndef _TEXTDISPLAY_HPP
  75. #include "TextDisplay.hpp"
  76. #endif
  77.  
  78. #ifndef _BTXSERVICE_HPP
  79. #include "BTXService.hpp"
  80. #endif
  81.  
  82. #ifndef _MODEMSERVICE_HPP
  83. #include "ModemService.hpp"
  84. #endif
  85.  
  86. /****************************************************************************/
  87.  
  88. class Application
  89. {
  90.     public:
  91.  
  92.         Application();
  93.         ~Application();
  94.  
  95.         STRPTR Open(STRPTR PubScreen,int XScale,int YScale,BOOL TextOnly,BOOL Direct,CONST STRPTR Channel,ULONG Unit=0,ULONG Baud=0,BOOL RTS_CTS=-1);
  96.         VOID Close(VOID);
  97.  
  98.         LONG DoEvent(VOID);
  99.         VOID WaitEvent(VOID);
  100.         LONG DispatchEvent(VOID);
  101.         LONG DispatchDisplayEvent(VOID);
  102.         VOID WaitForUserInput(VOID);
  103.  
  104.         ModemService    *AppModem;
  105.         IOChannel        *AppChannel;
  106.  
  107.     private:
  108.  
  109.         BTXDisplay         *AppDisplay;
  110.         BTXService        *AppService;
  111. };
  112.  
  113. #endif    // _APPLICATION_HPP
  114.